package com.bean;

import com.imessage.type.BusinessTaskCmd;
import com.imessage.type.BusinessTaskState;
import lombok.*;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

@Getter
@Setter
@ToString
@Entity
@Table(name = "business_task", schema = "public")
public class BusinessTask extends BaseModel implements Serializable {


    @Column(name = "total_num", nullable = true)
    private Long totalNum=0l;

    @Column(name = "succ_num", nullable = true)
    private Long succNum=0l;

    @Column(name = "error_num", nullable = true)
    private Long errorNum=0l;

    @Column(name = "deal_num", nullable = true)
    private Long dealNum=0l;

    @Column(name = "state", nullable = true, length = 2)
    private BusinessTaskState state = BusinessTaskState.wait;


}
